/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.teach.dao;

import com.lczyfz.istep.common.persistence.CrudDao;
import com.lczyfz.istep.common.persistence.annotation.MyBatisDao;
import com.lczyfz.istep.modules.teach.entity.TeachDistributeClass;
import com.lczyfz.istep.modules.teach.entity.TeachDistributeCtfset;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 下发Ctf题目集中间表DAO接口
 * @author cqh
 * @version 2017-03-21
 */
@MyBatisDao
public interface TeachDistributeCtfsetDao extends CrudDao<TeachDistributeCtfset> {

    //根据DistributeId获取多条记录-该次下发的所有CTF题目集id（去重后）
    List<String> findCtfsetListByDistributeId(TeachDistributeCtfset teachDistributeCtfset);

    //删除下发和CTF题目集关联表数据-真删除
    void deleteDistributeCtfset(@Param("distributeId")String distributeId);

}